package shiyan2;

import java.util.*;

public class Test {
	public static void main(String[] args) {
		try (Scanner input = new Scanner(System.in)) {
			Student student;
			Teacher teacher;
			Subject subject = new Subject();
			@SuppressWarnings("unused")
			system system;
			shiyan2.system.main(args);
			int ch = input.nextInt();
			if (ch == 1) {
				// teacher
				subject.setsu();
				// System.out.println(Arrays.toString(subject.getsu()));
				System.out.println("请输入开课序号（1~9）");
				subject.Kaike(); // 开课
				teacher = new Teacher("teacher a", 1861171, "男");
				System.out.println("姓名：" + teacher.getName() + "   "  + "编号："
						+ teacher.getBianhao() + "   " + "性别：" + teacher.getXingbie());
				System.out.println(Arrays.toString(subject.getKaike()));// 输出开课课表

				System.out.println("学生选课");
				// student1
				System.out.println("输入选课课序号（1~4）");
				subject.xuan(); // 选课
				System.out.println(Arrays.toString(subject.getxuan())); 
				System.out.println("学生退课");
				System.out.println("输入退课课序号（1~2）");
				subject.tui(); // 退课
				System.out.println(Arrays.toString(subject.gettui()));
				student = new Student("Sam", 2020310846, "男");
				System.out.println(
						"姓名：" + student.getName() + "   " + "编号：" + student.getBianhao()
								+ "   " + "性别：" + student.getXingbie() + "   " + "授课老师：" + teacher.getName());
				 
			}
			if (ch == 0) {
				System.out.println("已退出");
				System.exit(0);
			}
		}

	}
}